home *** CD-ROM | disk | FTP | other *** search
/ Interactive Web Graphics with Shout 3D / Interactive Web Graphics With Shout 3D.iso / pc / Shout3Ddemo / Shout3d_runtime / codebase / models / renderTests / colorPerVertexCombos.wrl < prev    next >
Text File  |  2000-07-30  |  14KB  |  1,086 lines

  1. #VRML V2.0 utf8
  2.  
  3. Viewpoint {
  4.     position 0 0 13   
  5. }
  6.  
  7. # start of top
  8. Transform {
  9.     translation 0 2.5 0 #2 0
  10. children [
  11.  
  12. # flat shaded material
  13. Transform {
  14. rotation 0 1 0 0.6
  15. translation -3 4.25 0
  16. children [
  17. Transform {
  18. rotation 1 0 0 0.3
  19. children [
  20. Shape {
  21. appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
  22. geometry IndexedFaceSet {
  23. solid FALSE
  24. coord DEF MyCoord Coordinate { point [ 
  25. 0 1 0.3
  26. -1 0 0
  27. 0 -1 0.3
  28. 1 0 0
  29. ]}
  30. coordIndex [
  31. 0 1 2 -1
  32. 0 2 3 -1
  33. ]
  34. }
  35. }
  36. ]
  37. }
  38. ]
  39. }
  40.  
  41. # smooth shaded material
  42. Transform {
  43. rotation 0 1 0 0.6
  44. translation -1 4.25 0
  45. children [
  46. Transform {
  47. rotation 1 0 0 0.3
  48. children [
  49. Shape {
  50. appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
  51. geometry IndexedFaceSet {
  52. creaseAngle 3
  53. solid FALSE
  54. coord DEF MyCoord Coordinate { point [ 
  55. 0 1 0.3
  56. -1 0 0
  57. 0 -1 0.3
  58. 1 0 0
  59. ]}
  60. coordIndex [
  61. 0 1 2 -1
  62. 0 2 3 -1
  63. ]
  64. }
  65. }
  66. ]
  67. }
  68. ]
  69. }
  70.  
  71. # flat shaded material with transparency
  72. Transform {
  73. rotation 0 1 0 0.6
  74. translation 1 4.25 0
  75. children [
  76. Transform {
  77. rotation 1 0 0 0.3
  78. children [
  79. Shape {
  80. appearance Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.5 } }
  81. geometry IndexedFaceSet {
  82. solid FALSE
  83. coord DEF MyCoord Coordinate { point [ 
  84. 0 1 0.3
  85. -1 0 0
  86. 0 -1 0.3
  87. 1 0 0
  88. ]}
  89. coordIndex [
  90. 0 1 2 -1
  91. 0 2 3 -1
  92. ]
  93. }
  94. }
  95. ]
  96. }
  97. ]
  98. }
  99.  
  100. # smooth shaded material with transparency
  101. Transform {
  102. rotation 0 1 0 0.6
  103. translation 3 4.25 0
  104. children [
  105. Transform {
  106. rotation 1 0 0 0.3
  107. children [
  108. Shape {
  109. appearance Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.5 } }
  110. geometry IndexedFaceSet {
  111. solid FALSE
  112. creaseAngle 3
  113. coord DEF MyCoord Coordinate { point [ 
  114. 0 1 0.3
  115. -1 0 0
  116. 0 -1 0.3
  117. 1 0 0
  118. ]}
  119. coordIndex [
  120. 0 1 2 -1
  121. 0 2 3 -1
  122. ]
  123. }
  124. }
  125. ]
  126. }
  127. ]
  128. }
  129.  
  130. # flat shaded indexed per polygon
  131. Transform {
  132. rotation 0 1 0 0.6
  133. translation -3 2 0
  134. children [
  135. Transform {
  136. rotation 1 0 0 0.3
  137. children [
  138. Shape {
  139. appearance DEF MyApp Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
  140. geometry IndexedFaceSet {
  141. solid FALSE
  142. colorPerVertex FALSE
  143. coord DEF MyCoord Coordinate { point [ 
  144. 0 1 0.3
  145. -1 0 0
  146. 0 -1 0.3
  147. 1 0 0
  148. ]}
  149. coordIndex [
  150. 0 1 2 -1
  151. 0 2 3 -1
  152. ]
  153. color Color {color [
  154. 1 0 0
  155. 0 1 0
  156. ]}
  157. colorIndex [
  158. 1 0
  159. ]
  160. }
  161. }
  162. ]
  163. }
  164. ]
  165. }
  166.  
  167.  
  168. # smooth shaded indexed per polygon
  169. Transform {
  170. rotation 0 1 0 0.6
  171. translation -1 2 0
  172. children [
  173. Transform {
  174. rotation 1 0 0 0.3
  175. children [
  176. Shape {
  177. appearance USE MyApp
  178. geometry IndexedFaceSet {
  179. solid FALSE
  180. colorPerVertex FALSE
  181. creaseAngle 3
  182. coord USE MyCoord
  183. coordIndex [
  184. 0 1 2 -1
  185. 0 2 3 -1
  186. ]
  187. color Color {color [
  188. 1 0 0
  189. 0 1 0
  190. ]}
  191. colorIndex [
  192. 1 0
  193. ]
  194. }
  195. }
  196. ]
  197. }
  198. ]
  199. }
  200.  
  201.  
  202.  
  203. # flat shaded per polygon
  204. Transform {
  205. rotation 0 1 0 0.6
  206. translation 1 2 0
  207. children [
  208. Transform {
  209. rotation 1 0 0 0.3
  210. children [
  211. Shape {
  212. appearance USE MyApp #Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
  213. geometry IndexedFaceSet {
  214. solid FALSE
  215. colorPerVertex FALSE
  216. coord USE MyCoord
  217. coordIndex [
  218. 0 1 2 -1
  219. 0 2 3 -1
  220. ]
  221. color Color {color [
  222. 1 0 0
  223. 0 1 0
  224. ]}
  225. }
  226. }
  227. ]
  228. }
  229. ]
  230. }
  231.  
  232. # smooth shaded per polygon
  233. Transform {
  234. rotation 0 1 0 0.6
  235. translation 3 2 0
  236. children [
  237. Transform {
  238. rotation 1 0 0 0.3
  239. children [
  240. Shape {
  241. appearance USE MyApp #Appearance { material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 } }
  242. geometry IndexedFaceSet {
  243. solid FALSE
  244. colorPerVertex FALSE
  245. creaseAngle 3
  246. coord USE MyCoord
  247. coordIndex [
  248. 0 1 2 -1
  249. 0 2 3 -1
  250. ]
  251. color Color {color [
  252. 1 0 0
  253. 0 1 0
  254. ]}
  255. }
  256. }
  257. ]
  258. }
  259. ]
  260. }
  261.  
  262.  
  263. # flat shaded indexed per vertex
  264. Transform {
  265. rotation 0 1 0 0.6
  266. translation -3 -0.25 0
  267. children [
  268. Transform {
  269. rotation 1 0 0 0.3
  270. children [
  271. Shape {
  272. appearance USE MyApp
  273. geometry IndexedFaceSet {
  274. solid FALSE
  275. colorPerVertex TRUE
  276. coord USE MyCoord
  277. coordIndex [
  278. 0 1 2 -1
  279. 0 2 3 -1
  280. ]
  281. color Color {color [
  282. 1 0 0
  283. 0 0.5 0
  284. 0 1 0
  285. 0.5 0.5 0
  286.  
  287. ]}
  288. colorIndex [
  289. 0 2 3 -1
  290. 0 1 2 -1
  291. ]
  292. }
  293. }
  294. ]
  295. }
  296. ]
  297. }
  298.  
  299. # smooth shaded indexed per vertex
  300. Transform {
  301. rotation 0 1 0 0.6
  302. translation -1 -0.25 0
  303. children [
  304. Transform {
  305. rotation 1 0 0 0.3
  306. children [
  307. Shape {
  308. appearance USE MyApp
  309. geometry IndexedFaceSet {
  310. solid FALSE
  311. creaseAngle 3
  312. colorPerVertex TRUE
  313. coord USE MyCoord
  314. coordIndex [
  315. 0 1 2 -1
  316. 0 2 3 -1
  317. ]
  318. color Color {color [
  319. 1 0 0
  320. 0 0.5 0
  321. 0 1 0
  322. 0.5 0.5 0
  323.  
  324. ]}
  325. colorIndex [
  326. 0 2 3 -1
  327. 0 1 2 -1
  328. ]
  329. }
  330. }
  331. ]
  332. }
  333. ]
  334. }
  335.  
  336.  
  337.  
  338. # flat shaded per vertex
  339. Transform {
  340. rotation 0 1 0 0.6
  341. translation 1 -0.25 0
  342. children [
  343. Transform {
  344. rotation 1 0 0 0.3
  345. children [
  346. Shape {
  347. appearance USE MyApp
  348. geometry IndexedFaceSet {
  349. solid FALSE
  350. colorPerVertex TRUE
  351. coord USE MyCoord
  352. coordIndex [
  353. 0 1 2 -1
  354. 0 2 3 -1
  355. ]
  356. color Color {color [
  357. 1 0 0
  358. 0 0.5 0
  359. 0 1 0
  360. 0.5 0.5 0
  361. ]}
  362. }
  363. }
  364. ]
  365. }
  366. ]
  367. }
  368.  
  369. # smooth shaded per vertex
  370. Transform {
  371. rotation 0 1 0 0.6
  372. translation 3 -0.25 0
  373. children [
  374. Transform {
  375. rotation 1 0 0 0.3
  376. children [
  377. Shape {
  378. appearance USE MyApp
  379. geometry IndexedFaceSet {
  380. solid FALSE
  381. creaseAngle 3
  382. colorPerVertex TRUE
  383. coord USE MyCoord
  384. coordIndex [
  385. 0 1 2 -1
  386. 0 2 3 -1
  387. ]
  388. color Color {color [
  389. 1 0 0
  390. 0 0.5 0
  391. 0 1 0
  392. 0.5 0.5 0
  393. ]}
  394. }
  395. }
  396. ]
  397. }
  398. ]
  399. }
  400.  
  401.  
  402.  
  403. ]
  404. } # end of top
  405.  
  406.  
  407. # start of middle
  408. Transform {
  409.     translation 0 -4.25 0 #-5 0
  410. children [
  411.  
  412. # flat shaded material with texture
  413. Transform {
  414. rotation 0 1 0 0.6
  415. translation -3 4.25 0
  416. children [
  417. Transform {
  418. rotation 1 0 0 0.3
  419. children [
  420. Shape {
  421. appearance DEF MyTexApp Appearance {
  422.     material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 }
  423.     texture ImageTexture { url "cpv_texmap.jpg" }
  424. }
  425. geometry IndexedFaceSet {
  426. solid FALSE
  427. coord DEF MyCoord Coordinate { point [ 
  428. 0 1 0.3
  429. -1 0 0
  430. 0 -1 0.3
  431. 1 0 0
  432. ]}
  433. coordIndex [
  434. 0 1 2 -1
  435. 0 2 3 -1
  436. ]
  437. texCoord DEF MyTexCoord TextureCoordinate { point [
  438. 0 1 0 0 1 0 1 1
  439. ]}
  440. texCoordIndex [
  441. 0 1 2 -1
  442. 0 2 3 -1
  443. ]
  444.  
  445. }
  446. }
  447. ]
  448. }
  449. ]
  450. }
  451.  
  452. # smooth shaded material with texture
  453. Transform {
  454. rotation 0 1 0 0.6
  455. translation -1 4.25 0
  456. children [
  457. Transform {
  458. rotation 1 0 0 0.3
  459. children [
  460. Shape {
  461. appearance USE MyTexApp
  462. geometry IndexedFaceSet {
  463. solid FALSE
  464. creaseAngle 3
  465. coord DEF MyCoord Coordinate { point [ 
  466. 0 1 0.3
  467. -1 0 0
  468. 0 -1 0.3
  469. 1 0 0
  470. ]}
  471. coordIndex [
  472. 0 1 2 -1
  473. 0 2 3 -1
  474. ]
  475. texCoord USE MyTexCoord
  476. texCoordIndex [
  477. 0 1 2 -1
  478. 0 2 3 -1
  479. ]
  480. }
  481. }
  482. ]
  483. }
  484. ]
  485. }
  486.  
  487. # white lit flat shaded with texture
  488. Transform {
  489. rotation 0 1 0 0.6
  490. translation 1 4.25 0
  491. children [
  492. Transform {
  493. rotation 1 0 0 0.3
  494. children [
  495. Shape {
  496. appearance Appearance {
  497.     material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 }
  498.     texture ImageTexture { url "cpv_texmap.jpg" }
  499. }
  500. geometry IndexedFaceSet {
  501. solid FALSE
  502. coord DEF MyCoord Coordinate { point [ 
  503. 0 1 0.3
  504. -1 0 0
  505. 0 -1 0.3
  506. 1 0 0
  507. ]}
  508. coordIndex [
  509. 0 1 2 -1
  510. 0 2 3 -1
  511. ]
  512.  
  513. texCoord USE MyTexCoord
  514. texCoordIndex [
  515. 0 1 2 -1
  516. 0 2 3 -1
  517. ]
  518.  
  519. }
  520. }
  521. ]
  522. }
  523. ]
  524. }
  525.  
  526. # white lit smooth shaded with texture
  527. Transform {
  528. rotation 0 1 0 0.6
  529. translation 3 4.25 0
  530. children [
  531. Transform {
  532. rotation 1 0 0 0.3
  533. children [
  534. Shape {
  535. appearance Appearance {
  536.     material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 }
  537.     texture ImageTexture { url "cpv_texmap.jpg" }
  538. }
  539. geometry IndexedFaceSet {
  540. solid FALSE
  541. creaseAngle 3
  542. coord DEF MyCoord Coordinate { point [ 
  543. 0 1 0.3
  544. -1 0 0
  545. 0 -1 0.3
  546. 1 0 0
  547. ]}
  548. coordIndex [
  549. 0 1 2 -1
  550. 0 2 3 -1
  551. ]
  552.  
  553. texCoord USE MyTexCoord
  554. texCoordIndex [
  555. 0 1 2 -1
  556. 0 2 3 -1
  557. ]
  558.  
  559. }
  560. }
  561. ]
  562. }
  563. ]
  564. }
  565.  
  566.  
  567. # flat shaded indexed per polygon with texture
  568. Transform {
  569. rotation 0 1 0 0.6
  570. translation -3 2 0
  571. children [
  572. Transform {
  573. rotation 1 0 0 0.3
  574. children [
  575. Shape {
  576. appearance USE MyTexApp
  577. geometry IndexedFaceSet {
  578. solid FALSE
  579. colorPerVertex FALSE
  580. coord DEF MyCoord Coordinate { point [ 
  581. 0 1 0.3
  582. -1 0 0
  583. 0 -1 0.3
  584. 1 0 0
  585. ]}
  586. coordIndex [
  587. 0 1 2 -1
  588. 0 2 3 -1
  589. ]
  590. color Color {color [
  591. 1 0 0
  592. 0 1 0
  593. ]}
  594. colorIndex [
  595. 1 0
  596. ]
  597.  
  598. texCoord USE MyTexCoord
  599. texCoordIndex [
  600. 0 1 2 -1
  601. 0 2 3 -1
  602. ]
  603.  
  604. }
  605. }
  606. ]
  607. }
  608. ]
  609. }
  610.  
  611.  
  612. # smooth shaded indexed per polygon with texture
  613. Transform {
  614. rotation 0 1 0 0.6
  615. translation -1 2 0
  616. children [
  617. Transform {
  618. rotation 1 0 0 0.3
  619. children [
  620. Shape {
  621. appearance USE MyTexApp
  622. geometry IndexedFaceSet {
  623. solid FALSE
  624. colorPerVertex FALSE
  625. creaseAngle 3
  626. coord USE MyCoord
  627. coordIndex [
  628. 0 1 2 -1
  629. 0 2 3 -1
  630. ]
  631. color Color {color [
  632. 1 0 0
  633. 0 1 0
  634. ]}
  635. colorIndex [
  636. 1 0
  637. ]
  638.  
  639. texCoord USE MyTexCoord
  640. texCoordIndex [
  641. 0 1 2 -1
  642. 0 2 3 -1
  643. ]
  644.  
  645. }
  646. }
  647. ]
  648. }
  649. ]
  650. }
  651.  
  652.  
  653.  
  654. # flat shaded per polygon with texture
  655. Transform {
  656. rotation 0 1 0 0.6
  657. translation 1 2 0
  658. children [
  659. Transform {
  660. rotation 1 0 0 0.3
  661. children [
  662. Shape {
  663. appearance USE MyTexApp
  664. geometry IndexedFaceSet {
  665. solid FALSE
  666. colorPerVertex FALSE
  667. coord USE MyCoord
  668. coordIndex [
  669. 0 1 2 -1
  670. 0 2 3 -1
  671. ]
  672. color Color {color [
  673. 1 0 0
  674. 0 1 0
  675. ]}
  676.  
  677. texCoord USE MyTexCoord
  678. texCoordIndex [
  679. 0 1 2 -1
  680. 0 2 3 -1
  681. ]
  682.  
  683. }
  684. }
  685. ]
  686. }
  687. ]
  688. }
  689.  
  690. # smooth shaded per polygon with texture
  691. Transform {
  692. rotation 0 1 0 0.6
  693. translation 3 2 0
  694. children [
  695. Transform {
  696. rotation 1 0 0 0.3
  697. children [
  698. Shape {
  699. appearance USE MyTexApp
  700. geometry IndexedFaceSet {
  701. solid FALSE
  702. colorPerVertex FALSE
  703. creaseAngle 3
  704. coord USE MyCoord
  705. coordIndex [
  706. 0 1 2 -1
  707. 0 2 3 -1
  708. ]
  709. color Color {color [
  710. 1 0 0
  711. 0 1 0
  712. ]}
  713.  
  714. texCoord USE MyTexCoord
  715. texCoordIndex [
  716. 0 1 2 -1
  717. 0 2 3 -1
  718. ]
  719.  
  720. }
  721. }
  722. ]
  723. }
  724. ]
  725. }
  726.  
  727.  
  728. # flat shaded indexed per vertex with texture
  729. Transform {
  730. rotation 0 1 0 0.6
  731. translation -3 -0.25 0
  732. children [
  733. Transform {
  734. rotation 1 0 0 0.3
  735. children [
  736. Shape {
  737. appearance USE MyTexApp
  738. geometry IndexedFaceSet {
  739. solid FALSE
  740. colorPerVertex TRUE
  741. coord USE MyCoord
  742. coordIndex [
  743. 0 1 2 -1
  744. 0 2 3 -1
  745. ]
  746. color Color {color [
  747. 1 0 0
  748. 0 0.5 0
  749. 0 1 0
  750. 0.5 0.5 0
  751.  
  752. ]}
  753. colorIndex [
  754. 0 2 3 -1
  755. 0 1 2 -1
  756. ]
  757.  
  758. texCoord USE MyTexCoord
  759. texCoordIndex [
  760. 0 1 2 -1
  761. 0 2 3 -1
  762. ]
  763.  
  764. }
  765. }
  766. ]
  767. }
  768. ]
  769. }
  770.  
  771. # smooth shaded indexed per vertex with texture
  772. Transform {
  773. rotation 0 1 0 0.6
  774. translation -1 -0.25 0
  775. children [
  776. Transform {
  777. rotation 1 0 0 0.3
  778. children [
  779. Shape {
  780. appearance USE MyTexApp
  781. geometry IndexedFaceSet {
  782. solid FALSE
  783. creaseAngle 3
  784. colorPerVertex TRUE
  785. coord USE MyCoord
  786. coordIndex [
  787. 0 1 2 -1
  788. 0 2 3 -1
  789. ]
  790. color Color {color [
  791. 1 0 0
  792. 0 0.5 0
  793. 0 1 0
  794. 0.5 0.5 0
  795.  
  796. ]}
  797. colorIndex [
  798. 0 2 3 -1
  799. 0 1 2 -1
  800. ]
  801.  
  802. texCoord USE MyTexCoord
  803. texCoordIndex [
  804. 0 1 2 -1
  805. 0 2 3 -1
  806. ]
  807.  
  808. }
  809. }
  810. ]
  811. }
  812. ]
  813. }
  814.  
  815.  
  816.  
  817. # flat shaded per vertex with texture
  818. Transform {
  819. rotation 0 1 0 0.6
  820. translation 1 -0.25 0
  821. children [
  822. Transform {
  823. rotation 1 0 0 0.3
  824. children [
  825. Shape {
  826. appearance USE MyTexApp
  827. geometry IndexedFaceSet {
  828. solid FALSE
  829. colorPerVertex TRUE
  830. coord USE MyCoord
  831. coordIndex [
  832. 0 1 2 -1
  833. 0 2 3 -1
  834. ]
  835. color Color {color [
  836. 1 0 0
  837. 0 0.5 0
  838. 0 1 0
  839. 0.5 0.5 0
  840. ]}
  841.  
  842. texCoord USE MyTexCoord
  843. texCoordIndex [
  844. 0 1 2 -1
  845. 0 2 3 -1
  846. ]
  847.  
  848. }
  849. }
  850. ]
  851. }
  852. ]
  853. }
  854.  
  855. # smooth shaded per vertex with texture
  856. Transform {
  857. rotation 0 1 0 0.6
  858. translation 3 -0.25 0
  859. children [
  860. Transform {
  861. rotation 1 0 0 0.3
  862. children [
  863. Shape {
  864. appearance USE MyTexApp
  865. geometry IndexedFaceSet {
  866. solid FALSE
  867. creaseAngle 3
  868. colorPerVertex TRUE
  869. coord USE MyCoord
  870. coordIndex [
  871. 0 1 2 -1
  872. 0 2 3 -1
  873. ]
  874. color Color {color [
  875. 1 0 0
  876. 0 0.5 0
  877. 0 1 0
  878. 0.5 0.5 0
  879. ]}
  880.  
  881. texCoord USE MyTexCoord
  882. texCoordIndex [
  883. 0 1 2 -1
  884. 0 2 3 -1
  885. ]
  886.  
  887. }
  888. }
  889. ]
  890. }
  891. ]
  892. }
  893.  
  894.  
  895.  
  896. ]
  897. } # end of middle
  898.  
  899.  
  900.  
  901. # start of bottom
  902. Transform {
  903.     translation 0 -11 0
  904. children [
  905.  
  906. # flat shaded white lit texture with transparency
  907. Transform {
  908. rotation 0 1 0 0.6
  909. translation -3 4.25 0
  910. children [
  911. Transform {
  912. rotation 1 0 0 0.3
  913. children [
  914. Shape {
  915. appearance Appearance {
  916.     material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 transparency 0.5 }
  917.     texture ImageTexture { url "cpv_texmap.jpg" }
  918. }
  919. geometry IndexedFaceSet {
  920. solid FALSE
  921. coord DEF MyCoord Coordinate { point [ 
  922. 0 1 0.3
  923. -1 0 0
  924. 0 -1 0.3
  925. 1 0 0
  926. ]}
  927. coordIndex [
  928. 0 1 2 -1
  929. 0 2 3 -1
  930. ]
  931. texCoord DEF MyTexCoord TextureCoordinate { point [
  932. 0 1 0 0 1 0 1 1
  933. ]}
  934. texCoordIndex [
  935. 0 1 2 -1
  936. 0 2 3 -1
  937. ]
  938.  
  939. }
  940. }
  941. ]
  942. }
  943. ]
  944. }
  945.  
  946. # smooth shaded white lit with texture transparency and material transparency
  947. Transform {
  948. rotation 0 1 0 0.6
  949. translation -1 4.25 0
  950. children [
  951. Transform {
  952. rotation 1 0 0 0.3
  953. children [
  954. Shape {
  955. appearance Appearance {
  956.     material Material { modulateTextureWithDiffuse true diffuseColor 1 1 1 transparency 0.5 }
  957.     texture ImageTexture { url "cpv_transmap.gif" }
  958. }
  959. geometry IndexedFaceSet {
  960. solid FALSE
  961. creaseAngle 3
  962. coord DEF MyCoord Coordinate { point [ 
  963. 0 1 0.3
  964. -1 0 0
  965. 0 -1 0.3
  966. 1 0 0
  967. ]}
  968. coordIndex [
  969. 0 1 2 -1
  970. 0 2 3 -1
  971. ]
  972. texCoord USE MyTexCoord
  973. texCoordIndex [
  974. 0 1 2 -1
  975. 0 2 3 -1
  976. ]
  977. }
  978. }
  979. ]
  980. }
  981. ]
  982. }
  983.  
  984. # color per poly + tex & mat transparency
  985. Transform {
  986. rotation 0 1 0 0.6
  987. translation 1 4.25 0
  988. children [
  989. Transform {
  990. rotation 1 0 0 0.3
  991. children [
  992. Shape {
  993. appearance Appearance {
  994.     material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.25 }
  995.     texture ImageTexture { url "cpv_transmap.gif" }
  996. }
  997. geometry IndexedFaceSet {
  998. solid FALSE
  999.     colorPerVertex FALSE
  1000. coord DEF MyCoord Coordinate { point [ 
  1001. 0 1 0.3
  1002. -1 0 0
  1003. 0 -1 0.3
  1004. 1 0 0
  1005. ]}
  1006. coordIndex [
  1007. 0 1 2 -1
  1008. 0 2 3 -1
  1009. ]
  1010.  
  1011. texCoord USE MyTexCoord
  1012. texCoordIndex [
  1013. 0 1 2 -1
  1014. 0 2 3 -1
  1015. ]
  1016.  
  1017. color Color {color [
  1018. 1 0 0
  1019. 0 1 0
  1020. ]}
  1021. colorIndex [
  1022. 1 0
  1023. ]
  1024.  
  1025.  
  1026. }
  1027. }
  1028. ]
  1029. }
  1030. ]
  1031. }
  1032.  
  1033. # white lit smooth shaded with texture
  1034. Transform {
  1035. rotation 0 1 0 0.6
  1036. translation 3 4.25 0
  1037. children [
  1038. Transform {
  1039. rotation 1 0 0 0.3
  1040. children [
  1041. Shape {
  1042. appearance Appearance {
  1043.     material Material { modulateTextureWithDiffuse true diffuseColor 1 0 0 emissiveColor 0 0 1 transparency 0.25 }
  1044.     texture ImageTexture { url "cpv_transmap.gif" }
  1045. }
  1046. geometry IndexedFaceSet {
  1047. solid FALSE
  1048. creaseAngle 3
  1049. colorPerVertex TRUE
  1050. coord DEF MyCoord Coordinate { point [ 
  1051. 0 1 0.3
  1052. -1 0 0
  1053. 0 -1 0.3
  1054. 1 0 0
  1055. ]}
  1056. coordIndex [
  1057. 0 1 2 -1
  1058. 0 2 3 -1
  1059. ]
  1060.  
  1061. texCoord USE MyTexCoord
  1062. texCoordIndex [
  1063. 0 1 2 -1
  1064. 0 2 3 -1
  1065. ]
  1066.  
  1067. color Color {color [
  1068. 1 0 0
  1069. 0 0.5 0
  1070. 0 1 0
  1071. 0.5 0.5 0
  1072. ]}
  1073.  
  1074.  
  1075. }
  1076. }
  1077. ]
  1078. }
  1079. ]
  1080. }
  1081.  
  1082.  
  1083. ]
  1084. } # end of bottom
  1085.  
  1086.